
<script>
	
	function cancel(){
		window.close();
	}
	function save(){
		$("#frmData").attr("action","index.php?r=keuangan/tu/monthly_fee/edit");
		$("#frmData").attr("target","_self");
		$("#tahun_ajaran_id").removeAttr("disabled");
				
		$("#frmData").submit();		
		$("#tahun_ajaran_id").attr("disabled");
	}
	
	
	
</script>

<div style="border-bottom:2px solid #000;padding-bottom:5px;margin-bottom:20px">
<?php 
	$this->widget('application.components.widgets.ActionBar', 
		array("menuAlign" => "right", 
			'items' => array(
				array(
					'id' => "btnRefresh",
					'title' => "Simpan",
					'icon' => "images/action/Actions-document-save-all-icon.png",
					'callback'=>"save"
				),					
				array(
					'id' => "btnCancel",
					'title' => "Batal",
					'icon' => "images/action/Actions-dialog-cancel-icon.png",
					'callback'=>"cancel"
				),
			)
		)
	);
?>
</div>

<form id="frmData" action="index.php?r=keuangan/tu/monthly_fee/edit" method="POST">	
	
	<input type="hidden" name="id" id="id" value="<?php echo $studentClass->id ?>" readonly/>
	<div>
		<label class="form mandatory" style="width:100px"><?php echo Yii::t("label","SID")?></label>
		<label class="form mandatory" style="width:10px">:</label>
		<label class="form mandatory" style="width:100px"><?php echo $studentClass->student->sid?></label>				 
	</div>
	
	<div>
		<label class="form mandatory" style="width:100px"><?php echo Yii::t("label","Nama")?></label>
		<label class="form mandatory" style="width:10px">:</label>
		<label class="form mandatory" style="width:200px"><?php echo $studentClass->student->name?></label>				 
	</div>
	
	<div>
		<label class="form mandatory" style="width:100px"><?php echo Yii::t("label","Kelas")?></label>
		<label class="form mandatory" style="width:10px">:</label>
		<label class="form mandatory" style="width:100px"><?php echo $studentClass->kelasTahunAjaran->kelas->name?></label>				 
	</div>
	
	<div>
		<label class="form mandatory" style="width:100px"><?php echo Yii::t("label","Tingkatan")?></label>
		<label class="form mandatory" style="width:10px">:</label>
		<label class="form mandatory" style="width:200px"><?php echo $studentClass->kelasTahunAjaran->kelas->tingkatan->name?></label>				 
	</div>
	
	<div>
		<label class="form mandatory" style="width:100px"><?php echo Yii::t("label","Department")?></label>
		<label class="form mandatory" style="width:10px">:</label>
		<label class="form mandatory" style="width:200px"><?php echo $studentClass->kelasTahunAjaran->kelas->tingkatan->department_id?></label>				 
	</div>
	<div>
		<label class="form mandatory" style="width:100px"><?php echo Yii::t("label","Tahun ajaran")?></label>
		<label class="form mandatory" style="width:10px">:</label>
		<label class="form mandatory" style="width:200px"><?php echo $studentClass->kelasTahunAjaran->tahunAjaran->name?></label>				 
	</div>
	<div>
		<label class="form mandatory" style="width:100px"><?php echo Yii::t("label","Monthly Fee")?></label>
		<label class="form mandatory" style="width:10px">:</label>
		<input class="currency" name="monthly_fee" id="monthly_fee" style="width:100px;text-align:right" value="<?php echo Yii::app()->numberFormatter->format("##,##0",$studentClass->monthly_fee); ?>" />				 
	</div>
	<div>
		<label class="form mandatory" style="width:100px"><?php echo Yii::t("label","Discount")?></label>
		<label class="form mandatory" style="width:10px">:</label>
		<input class="currency"  name="disc_monthly_fee" id="disc_monthly_fee" style="width:100px;text-align:right" value="<?php echo  Yii::app()->numberFormatter->format("##,##0",$studentClass->disc_monthly_fee); ?>" />				 
	</div>
	
	<div>
		<label class="form mandatory" style="width:100px"><?php echo Yii::t("label","Active")?></label>
		<label class="form mandatory" style="width:10px">:</label>
		<?php
			$isActive = $studentClass->is_active == 1 ? "checked" :""; 
		?>
		<input type="checkbox" name="is_active" id="is_active" <?php echo $isActive;?> />				 
	</div>
	
	
		
</form>

